package com.lf.task;

import com.lf.task.support.Task;
import lombok.extern.slf4j.Slf4j;
import org.springframework.stereotype.Component;

@Component
@Slf4j
@Task(initialDelay = 1, period = 10)//延迟 1 ，间隔 2 ，单位自定义
public class TestTask implements Runnable {

    @Override
    public void run() {}
}





